package com.tyc.future;

import java.util.concurrent.*;

public class TestFuture {
    public static void main(String[] args) {
        ExecutorService executor = Executors.newFixedThreadPool(3);
        Future<String> future = executor.submit(() -> "success");
        executor.execute(()-> System.out.println(1));
    }
}
